package com.tjetc.mapper;

import com.tjetc.domain.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(Order record);

    Order selectByPrimaryKey(String orderId);

    int updateByPrimaryKey(Order record);

    List<Order> findAll();

    List<Order> toBeReviewed();

    List<Order> findByCustomerId(int id);

    void updateStatus(@Param("orderId") String orderId, @Param("orderStatus") int orderStatus);

    List<Order> findByCustomerIdAndStatus(@Param("id")Integer id, @Param("order_status")int order_status);

    List<Order> findByCustomerIdAndWei(@Param("customId") Integer id, @Param("status") int i);

    List<Order> findList(int i, int i1);
}